package com.jason.campusinn.view;

import com.yuandian.wanna.utils.CommonMethodUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 尺码类型名称
 * Created by yuandian on 2015/6/13.
 */
public class SizeNameBean implements Serializable {
    private String cnCode;//中国码
    private String eurCode;//欧码
    private String frontYiChang;//前衣长
    private String yiChang;//后衣长
    private String hipCircle;//臀围
    private String chestCircle;//胸围
    private String xiuChang;//袖长
    private String dXiuChang; //短袖长"
    private String waistCircle;//腰围
    private String jianWidth;//肩宽
    private String pantsLen;//裤长
    private String shortsPantsLen; //短裤长
    private String kuKou; //裤口(一周)
    private String xiuKou;// 袖口
    private String xiuFei;//袖肥

    private List<String> content = null;
    private List<String> keyValues = null;

    public String getcontent(int position) {
        if (content == null) {
            initContent();
        }
        return content.get(position);
    }

    public int getLength()
    {
        if(content == null)
            return 0;
        return content.size();
    }

    public String getKeyValue(int position) {
        if (content == null) {
            initContent();
        }
        return keyValues.get(position);
    }
    private void initContent() {
        content = new ArrayList<String>();
        keyValues = new ArrayList<String>();
        if (!CommonMethodUtils.isEmpty(eurCode)) {
            content.add(eurCode);
            keyValues.add("getEurCode");
        }
        if (!CommonMethodUtils.isEmpty(cnCode)) {
            content.add(cnCode);
            keyValues.add("getCnCode");
        }

        if (!CommonMethodUtils.isEmpty(jianWidth)) {
            content.add(jianWidth);
            keyValues.add("getJianWidth");
        }

        if (!CommonMethodUtils.isEmpty(chestCircle)) {
            content.add(chestCircle);
            keyValues.add("getChestCircle");
        }

        if (!CommonMethodUtils.isEmpty(waistCircle)) {
            content.add(waistCircle);
            keyValues.add("getWaistCircle");

        }

        if (!CommonMethodUtils.isEmpty(hipCircle)) {
            content.add(hipCircle);
            keyValues.add("getHipCircle");
        }

        if (!CommonMethodUtils.isEmpty(xiuChang)) {
            content.add(xiuChang);
            keyValues.add("getXiuChang");
        }

        if (!CommonMethodUtils.isEmpty(dXiuChang)) {
            content.add(dXiuChang);
            keyValues.add("getdXiuChang");
        }

        if (!CommonMethodUtils.isEmpty(yiChang)) {
            content.add(yiChang);
            keyValues.add("getYiChang");
        }
        if (!CommonMethodUtils.isEmpty(frontYiChang)) {
            content.add(frontYiChang);
            keyValues.add("getFrontYiChang");
        }
        if (!CommonMethodUtils.isEmpty(pantsLen)) {
            content.add(pantsLen);
            keyValues.add("getPantsLen");
        }

        if (!CommonMethodUtils.isEmpty(shortsPantsLen)) {
            content.add(shortsPantsLen);
            keyValues.add("getShortsPantsLen");
        }

        if (!CommonMethodUtils.isEmpty(kuKou)) {
            content.add(kuKou);
            keyValues.add("getKuKou");
        }
        if (!CommonMethodUtils.isEmpty(xiuKou)) {
            content.add(xiuKou);
            keyValues.add("getXiuKou");
        }
        if (!CommonMethodUtils.isEmpty(xiuFei)) {
            content.add(xiuFei);
            keyValues.add("getXiuFei");
        }
    }

    public String getXiuKou() {
        return xiuKou;
    }

    public void setXiuKou(String xiuKou) {
        this.xiuKou = xiuKou;
    }

    public String getXiuFei() {
        return xiuFei;
    }

    public void setXiuFei(String xiuFei) {
        this.xiuFei = xiuFei;
    }

    public String getdXiuChang() {
        return dXiuChang;
    }

    public void setdXiuChang(String dXiuChang) {
        this.dXiuChang = dXiuChang;
    }

    public String getKuKou() {
        return kuKou;
    }

    public void setKuKou(String kuKou) {
        this.kuKou = kuKou;
    }

    public String getShortsPantsLen() {
        return shortsPantsLen;
    }

    public void setShortsPantsLen(String shortsPantsLen) {
        this.shortsPantsLen = shortsPantsLen;
    }

    public String getPantsLen() {
        return pantsLen;
    }

    public void setPantsLen(String pantsLen) {
        this.pantsLen = pantsLen;
    }

    public String getFrontYiChang() {
        return frontYiChang;
    }

    public void setFrontYiChang(String frontYiChang) {
        this.frontYiChang = frontYiChang;
    }

    public String getCnCode() {
        return cnCode;
    }

    public void setCnCode(String enCode) {
        this.cnCode = enCode;
    }

    public String getEurCode() {
        return eurCode;
    }

    public void setEurCode(String eurCode) {
        this.eurCode = eurCode;
    }

    public String getYiChang() {
        return yiChang;
    }

    public void setYiChang(String yiChang) {
        this.yiChang = yiChang;
    }

    public String getHipCircle() {
        return hipCircle;
    }

    public void setHipCircle(String hipCircle) {
        this.hipCircle = hipCircle;
    }

    public String getChestCircle() {
        return chestCircle;
    }

    public void setChestCircle(String chestCircle) {
        this.chestCircle = chestCircle;
    }

    public String getXiuChang() {
        return xiuChang;
    }

    public void setXiuChang(String xiuChang) {
        this.xiuChang = xiuChang;
    }

    public String getWaistCircle() {
        return waistCircle;
    }

    public void setWaistCircle(String waistCircle) {
        this.waistCircle = waistCircle;
    }

    public String getJianWidth() {
        return jianWidth;
    }

    public void setJianWidth(String jianWidth) {
        this.jianWidth = jianWidth;
    }
}
